package com.buric.common.emun;

import lombok.Getter;
import lombok.Setter;

/**
 * @author: zhou.wei
 * @description 响应枚举
 * @date: 2024/5/10 11:03
 */

public enum ResultEnums {
    SUCCESS(200, "成功"),
    FAIL(500, "系统繁忙"),
    SERVICE_ERROR(1001, "业务异常"),
    UNAUTHORIZED(401, "未授权"),
    FORBIDDEN(403, "禁止访问"),
    NOT_FOUND(404, "未找到"),


    FLOW(2001, "你被限流了，请求重新请求"),
    DEGRADE(2002, "降级异常"),
    PARAM_FLOW(2003, "热点参数异常"),
    SYSTEM_BLOCK(2004, "系统异常"),
    AUTHORITY(2005,"授权异常"),
    ;


    @Setter
    @Getter
    private Integer code;

    @Setter
    @Getter
    private String msg;

    ResultEnums(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
